const express = require("express");
const app = express();
app.get('/getData', (request, response) => {
    console.log('server2.', request.query);
    response.write(JSON.stringify({
        age: 25,
    }));
    response.end();
});
app.listen(3001);